package com.cy.model;

import java.util.Date;

import com.cy.BasicModel;
import com.cy.ext.plugin.tablebind.TableBind;

@SuppressWarnings("serial")
@TableBind(tableName = "activity_user", pkName = "id")
public class ActivityUser extends BasicModel<ActivityUser> {
	public static final ActivityUser dao = new ActivityUser();
	public static final String SELECT_ALL = "`id`, `activity_code`, `visit_url`";
	
	public ActivityUser setId(Integer id) {
		this.set("id", id);
		return this;
	}
	
	public Integer getId(){
		return this.get("id");
	}
	
	public ActivityUser setActivityCode(Integer activityCode){
		this.set("activity_code", activityCode);
		return this;
	}
	
	public Integer getActivityCode(){
		return this.get("activity_code");
	}
	
	public ActivityUser setVisitUrl(String visitUrl){
		this.set("visit_url", visitUrl);
		return this;
	}
	
	public String getVisitUrl(){
		return this.get("visit_url");
	}

	public ActivityUser setCreateTime(Date createTime) {
		this.set("create_time", createTime);
		return this;
	}

	public Date getCreateTime() {
		return this.get("create_time");
	}

	public ActivityUser setCreateUser(Integer createUser) {
		this.set("create_user", createUser);
		return this;
	}

	public Integer getCreateUser() {
		return this.get("create_user");
	}

	public ActivityUser setUpdateTime(Date updateTime) {
		this.set("update_time", updateTime);
		return this;
	}

	public Date getUpdateTime() {
		return this.get("update_time");
	}

	public ActivityUser setUpdateUser(Integer updateUser) {
		this.set("update_user", updateUser);
		return this;
	}

	public Integer getUpdateUser() {
		return this.get("update_user");
	}

}
